#include "stdafx.h"
#include "FSMMonster.h"
#include "Monster.h"
#include "StateMove.h"
#include "StateIdle.h"
#include "StateAttack.h"

FSMMonster::FSMMonster(Monster *obj)
{
	m_object = obj;
	m_states[FSM::st_idle] = new StateIdle(this, obj);
	m_states[FSM::st_move] = new StateMove(this, obj);
	m_states[FSM::st_attack] = new StateAttack(this, obj);
}

FSMMonster::~FSMMonster()
{
	m_object = nullptr;
}
